/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.shinyray.common.view.bean;

import com.shinyray.coa.view.jaxb.menu.Node;

/**
 * 控制应用的会话状态
 * @author Administrator
 */
public class ApplicationSessionModel {
    //当前选中的节点
    private Node currentNode;
    // navigation tree model states
    private NavigationTreeFactory navigationTreeFactory;

    // navigation panel collapsible expanded state
    private NavigationPanelCollapsibleFactory navigationPanelCollapsible;

    public ApplicationSessionModel() {
        navigationTreeFactory = new NavigationTreeFactory();
        navigationPanelCollapsible = new NavigationPanelCollapsibleFactory();
    }

    public Node getCurrentNode() {
        return currentNode;
    }

    public void setCurrentNode(Node currentNode) {
        this.currentNode = currentNode;
    }
    /**
     * Gets the navigation tree factory
     * @return  navigation tree factory
     */
    public NavigationTreeFactory getNavigationTrees() {
        return navigationTreeFactory;
    }
        /**
     * Gets the navigation panelCollapsible factory
     * @return navigation panelCollapsible factory
     */
    public NavigationPanelCollapsibleFactory getNavigationPanelCollapsible() {
        return navigationPanelCollapsible;
    }
}
